
import { Module } from '@nestjs/common';
import { SurveyService } from './survey.service';
import { SurveyController } from './survey.controller';
import { SurveyEntity } from './entities/survey.entity';
import { TypeOrmModule } from '@nestjs/typeorm';
import {SurveyIssueController} from "./survey-issue.controller";
import {SurveyIssueService} from "./survey-issue.service";
import {SurveyIssueEntity} from "./entities/survey-issue.entity";
import {IssueModule} from "../issue/issue.module";
import {IssueEntity} from "../issue/entities/issue.entity";
import {SurveyUserEntity} from "./entities/survey-user.entity";
import {StudentEntity} from "../../eduation/student/entities/student.entity";

@Module({
  imports: [
    TypeOrmModule.forFeature([
        SurveyEntity,
        SurveyIssueEntity,
        IssueEntity,
        SurveyUserEntity,
        StudentEntity
    ]),
    IssueModule
  ],
  controllers: [SurveyController,SurveyIssueController],
  providers: [SurveyService,SurveyIssueService],
    exports:[SurveyService]
})
export class SurveyModule {}

